from flask_sqlalchemy import SQLAlchemy

# Initialize SQLAlchemy instance
db = SQLAlchemy()

def init_db():
    """Initialize the database, creating tables if they don't exist."""
    db.create_all()
    print("Database initialized successfully.")
